import { E_MESSAGE_STATUS, E_MESSAGE_TYPE } from '../enum/service-enum'
import { IDataWithError } from '../service-typing'

export interface IListMessageParam {
  userId: number
  status: E_MESSAGE_STATUS
}

export interface IMessageInfo {
  messageId: number
  messageType: E_MESSAGE_TYPE
  userId: number
  userName: string
  courseId: number
  courseTitle: string
  voucherUrl: string
  status: E_MESSAGE_STATUS
  receiver: number
}

export interface IMessageService {
  listMessage(param: IListMessageParam): Promise<IDataWithError<Array<IMessageInfo>>>
}
